import {defineStore} from 'pinia';
import {io} from "socket.io-client";
import {v4 as uuid} from "uuid";

const UseUserStore = defineStore({
    id: 'UseUserStore',

    state: () => ({
        info: 'pinia 可以使用',
        userInfo: {
            userName: '',
            id: '',
            role: '',
            roomId: '001'
        },
        onlineUsers: [],
    }),
    // 开启数据缓存
    persist: true,
});
export default UseUserStore;

